<!--<?php
print<<<EF
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
</head>

<base target="_self" />
<body style="text-align:left">
<div id="toppath">选择ACS查询端口</div>
<div  style="padding:5px;"><a href="acsshow.inc.php?action=add">添加ACS端口</a></div>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function checkAll() {
for (var j = 0; j <= 15; j++) {
box = eval("document.checkboxform.choose_ip" + j ); 
if (box.checked == false) box.checked = true;
   }
}

function uncheckAll() {
for (var j = 0; j <= 15; j++) {
box = eval("document.checkboxform.choose_ip" + j); 
if (box.checked == true) box.checked = false;
   }
}

function switchAll() {
for (var j = 0; j <= 15; j++) {
box = eval("document.checkboxform.choose_ip" + j); 
box.checked = !box.checked;
   }
}
//  End -->
</script>
    <form method="post" action="acsshow1.inc.php" name="checkboxform">
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <th width="5%" align="center" valign="middle" bgcolor="#F0F0F0"></th>
    <th width="30%" align="center" valign="middle" bgcolor="#F0F0F0">目标ip:port</th>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">修改发送端口</th>
    <th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">提交查询</th>
  </tr>
<!--
EF;
$rows=count($row);
for($i=0;$i<count($row);$i++)
{
if(!$acsip[$i])break;
print<<<EF
-->
  <tr>
  <td>	
    <input name="choose_ip$i" type="checkbox" value="1" /></td>
    <td align="center" valign="middle">$acsip[$i]</td>
	<input type="hidden" name="action" value="editsendport" />
	<input type="hidden" name="ip[$i]" value="$acsip[$i]" />
	<input type="hidden" name="rows" value="$rows" />
	<td align="center" valign="middle"><input class="inputtext" type="text" name="port[$i]" value="$sendport[$i]"  /></td>
	<td align="center" valign="middle"><input name="msubmit" type="submit" value="提交" /></td>
  </tr>
<!--
EF;
}
print<<<EF
-->
</table>
<input type="button" value="全选" onClick="checkAll()" />
<input type="button" value="取消全选" onClick="uncheckAll()"/>
<input type="button" value="反向选择" onClick="switchAll()"/>
</form>

</body>
</html>
<!--
EF;
?>
-->